multiple inheritance - définition. Qu'est-ce que multiple inheritance
Diclib.com
Dictionnaire ChatGPT
Entrez un mot ou une phrase dans n'importe quelle langue 👆
Langue:

Traduction et analyse de mots par intelligence artificielle ChatGPT

Sur cette page, vous pouvez obtenir une analyse détaillée d'un mot ou d'une phrase, réalisée à l'aide de la meilleure technologie d'intelligence artificielle à ce jour:

  • comment le mot est utilisé
  • fréquence d'utilisation
  • il est utilisé plus souvent dans le discours oral ou écrit
  • options de traduction de mots
  • exemples d'utilisation (plusieurs phrases avec traduction)
  • étymologie

Qu'est-ce (qui) est multiple inheritance - définition

TO HAVE MORE THAN ONE PARENT CLASS
Single inheritance; Diamond problem; Troublesome diamond; Multi-inheritance; Diamond of doom; Diamond of Death; Diamond inheritance; Deadly Diamond of Death; Inheritance diamonds; Inheritance diamond; Diamond dependency
  • A diamond class inheritance diagram.

multiple inheritance         
<programming> In object-oriented programming, the possibility that a sub-class may be derived from multiple parent classes which are themselves not derived one from the other. (1997-08-06)
Multiple inheritance         
Multiple inheritance is a feature of some object-oriented computer programming languages in which an object or class can inherit features from more than one parent object or parent class. It is distinct from single inheritance, where an object or class may only inherit from one particular object or class.
single inheritance         
The property of an object-oriented language which restricts a sub-class to be derived from only one parent. Opposite of multiple inheritance.

Wikipédia

Multiple inheritance

Multiple inheritance is a feature of some object-oriented computer programming languages in which an object or class can inherit features from more than one parent object or parent class. It is distinct from single inheritance, where an object or class may only inherit from one particular object or class.

Multiple inheritance has been a controversial issue for many years, with opponents pointing to its increased complexity and ambiguity in situations such as the "diamond problem", where it may be ambiguous as to which parent class a particular feature is inherited from if more than one parent class implements said feature. This can be addressed in various ways, including using virtual inheritance. Alternate methods of object composition not based on inheritance such as mixins and traits have also been proposed to address the ambiguity.